<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/*
| -------------------------------------------------------------------------
| URI ROUTING
| -------------------------------------------------------------------------
| This file lets you re-map URI requests to specific controller functions.
|
| Typically there is a one-to-one relationship between a URL string
| and its corresponding controller class/method. The segments in a
| URL normally follow this pattern:
|
|	example.com/class/method/id/
|
| In some instances, however, you may want to remap this relationship
| so that a different class/function is called than the one
| corresponding to the URL.
|
| Please see the user guide for complete details:
|
|	http://codeigniter.com/user_guide/general/routing.html
|
| -------------------------------------------------------------------------
| RESERVED ROUTES
| -------------------------------------------------------------------------
|
| There area two reserved routes:
|
|	$route['default_controller'] = 'welcome';
|
| This route indicates which controller class should be loaded if the
| URI contains no data. In the above example, the "welcome" class
| would be loaded.
|
|	$route['404_override'] = 'errors/page_missing';
|
| This route will tell the Router what URI segments to use if those provided
| in the URL cannot be matched to a valid route.
|
*/

 
  // регистрация пользователя 
     $route['registration']= "adsent/registration";
     $route['telefon_registration']= "adsent/registration";

    
    
    
    // вход пользователя
 $route['enter']= "adsent/enter";
    // выход пользователя
 $route['exit']= "adsent/exits";
 $route['addnote']= "note/save";
 
  
    // Профиль пользователя
 $route['profile']= "adsent/profile";
 
 
 
    // Профиль пользователя
 $route['send_email']= "adsent/send_email";
  
     
    // Профиль пользователя
 $route['notepad']= "note/notepad";
  
    // Закладки пользователя
 $route['bookmarks']= "adsent/bookmarks";
 
    // Сохраняем контактные данные пользователя
 $route['profile_save']= "adsent/profile_save";
  
     
    // Сохраняем контактные данные пользователя
 $route['profile_pass']= "adsent/reload_password";
 
 $route['poisk_kvartir']= "search";
    
	
	
	
# блокнот


 
 $route['s/([0-9]+)']= "bookmark/get/$1";
	
    
    
    
    
    
    
    
    
    
    
    
    
    
	
# отображаем один вариант
 $route['showitem/rent_flat/([0-9]{1,10})']= "showitem_rent_flat/index/$1";
 $route['showitem/rent_suburbian/([0-9]{1,10})']= "showitem_rent_suburbian/index/$1";
 $route['showitem/rent_office/([0-9]{1,10})']= "showitem_rent_office/index/$1";
 
 $route['showitem/sale_flat/([0-9]{1,10})']= "showitem_sale_flat/index/$1";
 $route['showitem/sale_suburbian/([0-9]{1,10})']= "showitem_sale_suburbian/index/$1";
 $route['showitem/sale_office/([0-9]{1,10})']= "showitem_sale_office/index/$1";

	
	
	
    
    
    
    
    
    
    
    
    
    
    
	   # /question/rent/flat/7700000000000 
	   
# форма поиска по аренде
 $route['question/rent/flat/([0-9]{13})']= "question_rent/flat/$1";
 $route['question/rent/suburbian/([0-9]{13})']= "question_rent/suburbian/$1";
 $route['question/rent/office/([0-9]{13})']= "question_rent/office/$1";
    
# форма поиска по продаже
 $route['question/sale/flat/([0-9]{13})']= "question_sale/flat/$1";
 $route['question/sale/suburbian/([0-9]{13})']= "question_sale/suburbian/$1";
 $route['question/sale/office/([0-9]{13})']= "question_sale/office/$1";
    
	
  
    # http://yroom.ru/question/rent/flat?region=7700000000000
# форма поиска по аренде
 $route['question/rent/flat']= "question_rent/flat";
 $route['question/rent/suburbian']= "question_rent/suburbian";
 $route['question/rent/office']= "question_rent/office";
    
# форма поиска по продаже
 $route['question/sale/flat']= "question_sale/flat";
 $route['question/sale/suburbian']= "question_sale/suburbian";
 $route['question/sale/office']= "question_sale/office";
 
 
 
 
    
	

	
	
# поиска аренда
 $route['rent/flat']= "search_rent_flat";
 $route['rent/suburbian']= "search_rent_suburbian";
 $route['rent/office']= "search_rent_office";

# поиска  продажа
 $route['sale/flat']= "search_sale_flat";
 $route['sale/suburbian']= "search_sale_suburbian";
 $route['sale/office']= "search_sale_office";
	
	


























	
# форма поиска квартир по продаже
 $route['adsent/searchsale']= "question_sale";
 
 
    
# Поиск города,улицы,дома
 $route['maps/1']= "maps/moskow";
 
 
 
 $route['maps/([0-9]{1,2})']= "maps/city";
	
 $route['adsent/changregion']= "adsent_add/changregion";
 $route['adsent/street']= "adsent_add/street";
 
 // запрос метро
 $route['adsent/metro']= "adsent_add/metro";
 $route['adsent/metrosearch']= "adsent_add/metrosearch";
 
 $route['adsent/search_cm']= "adsent_add/search_cm";
 
  
  
 // поиск города
 $route['adsent/city']= "adsent_add/city";
    
 
 // поиск дома
 $route['adsent/home']= "adsent_add/home";
    
 // Главная страница поиска
 $route['adsent/s']= "adsent/adsent_count";
 
 // Главная страница поиска
 $route['adsent/([0-9]{1,3})'] = "adsent/index/$1";
 
 // Главная страница поиска
 $route['adsent']= "adsent"; 
	 
	  
/* запись объявления */	
	 
	
 $route['adsent/add/rent/flat']    = "save_rent_flat/save";
 $route['adsent/add/rent/suburbian']= "save_rent_suburbian/save";
 $route['adsent/add/rent/roffice']= "save_rent_office/save";
      
      
 $route['adsent/add/sale/flat']    = "save_sale_flat/save";
 $route['adsent/add/sale/suburbian']= "save_sale_suburbian/save";
 $route['adsent/add/sale/roffice']= "save_sale_office/save";
      
      
      
      
      
      
      
 #добавление объявления
 # регион 
 $route['adsent/add']= "adsent_add";
 $route['adsent/add/([0-9]{1,2})']= "adsent_add/index/$1";
 
 
 
 
 
 
 
 
 $route['adsent/add/([0-9]{1,2})/rent/office']= "adsent_add/rent_office/$1";
 
 
 $route['adsent/add/([0-9]{1,2})/rent/suburbian']= "adsent_add/rent_suburbian/$1";
 
 
 $route['adsent/add/([0-9]{1,2})/rent/flat']= "adsent_add/rent_flat/$1";
 
 
 
 
 $route['adsent/add/([0-9]{1,2})/sale/office']= "adsent_add/sale_office/$1";
 $route['adsent/add/([0-9]{1,2})/sale/suburbian']= "adsent_add/sale_suburbian/$1";
 $route['adsent/add/([0-9]{1,2})/sale/flat']= "adsent_add/sale_flat/$1";
 
 
 # /adsent/add/17/rent/flat/
 
 
 
 #добавление объявления
 # Аренда
 $route['adsent/']= "adsent_add";
 $route['adsent/add/([0-9]{1,2})']= "adsent_add/index/$1";
 
 $route['adsent/add/foto.html']= "adsent_add/foto";
 $route['adsent/add/ok.html']= "adsent_add/ok";
 $route['adsent/add/foto/save']= "adsent_add/foto_save";
   
 

 


























############ rss 
$route['rss/news.xml']= "rss"; 
$route['news_yandex.xml']= "rss/yandex";
 
$route['sitemap_articles.xml']= "rss/article";




 # карта сайтаf
$route['sitemap_news.xml']= "rss/sitemapnews";
$route['sitemap_news1.xml']= "rss/sitemapnews/1000";
$route['sitemap_news2.xml']= "rss/sitemapnews/2000";
$route['sitemap_news3.xml']= "rss/sitemapnews/3000";

  
# template_sale/template_article_1.php
# template_sale/template_article_2.php

 
 


 


$route['comment/add/([0-9]{1,6}).html']= "comment/add/$1";

# статьи 

# /articles.html
$route['articles.html']= "articles";
 
$route['articles/([a-z0-9]+).html']= "articles/ident/$1";


 
 

 
  
  

$route['template_sale/template_article_([0-9]+).php']= "home/page/template/$1";

  
  
  
  
$route['articles_yur.html']= "home/page/yur";
$route['articles_well.html']= "home/page/well";
$route['articles_realtos.html']= "home/page/realtos";
$route['articles_construction.html']= "home/page/construction";
$route['articles_kvart.html']= "home/page/kvart";
 
 

$route['articles_dogovor.html']= "home/page/dogovor";



$route['default_controller'] = "home";
$route['404_override'] = 'home';


/* End of file routes.php */
/* Location: ./application/config/routes.php */